package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.singleton;

//尚学堂提供的dubbo check 不建议使用
public class T03 {
    private static T03 instance=null;
    private T03(){
    }
    public static  T03 getInstance(){
        if (instance ==null){
            T03 t=null;
            synchronized (T03.class){
                t=instance;
                if(t==null){
                    synchronized (T03.class){
                        if(t==null){
                            t=new T03();
                        }
                    }
                    instance=t;
                }
            }
        }
        return instance;
    }
}
